



#include "myXmlElement.h"

namespace myFn
{

	myXmlElement *myXmlElement::operator []( const char *opt )
	{
		TiXmlElement *p = FirstChildElement( opt );
		return ( myXmlElement * ) p;
	}

	myXmlElement *myXmlElement::operator []( int index )
	{
		TiXmlElement *p = FirstChildElement();
		int i = 0;

		for( ; p; p = p->NextSiblingElement() )
		{
			if( i == index )
			{
				break;
			}

			i++;
		}

		return ( myXmlElement * ) p;
	}



};


